cmake_minimum_required(VERSION 3.16.0)

project(pickup LANGUAGES CXX)

set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTOMOC ON)

find_package(Qt5 COMPONENTS Widgets REQUIRED)

include_directories(${CMAKE_SOURCE_DIR}/include)

add_executable(pickup
    ${CMAKE_SOURCE_DIR}/include/file_analysis_button.h
    ${CMAKE_SOURCE_DIR}/include/pick_up_widget.h
    ${CMAKE_SOURCE_DIR}/src/pick_up_widget.cpp
    ${CMAKE_SOURCE_DIR}/src/pick_up_main.cpp
    ${CMAKE_SOURCE_DIR}/src/file_analysis_button.cpp
)

target_link_libraries(pickup PRIVATE Qt5::Widgets)